//package com.hmtech.ayp.contoller;
//
//import cn.dev33.satoken.stp.SaTokenInfo;
//import com.hmtech.ayp.common.resp.R;
//import com.hmtech.ayp.domain.dto.GoogleSignInDTO;
//import com.hmtech.ayp.service.impl.SignInService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/api/signIn")
//public class SignInController {
//    @Autowired
//    private SignInService signInService;
//
//    @PostMapping("/withGoogle")
//    public R<SaTokenInfo> signInWithGoogle(@RequestBody GoogleSignInDTO dto) {
//        SaTokenInfo saTokenInfo = signInService.signInWithGoogle(dto.getIdToken());
//        return R.ok(saTokenInfo);
//    }
//}
